From 4df2daa7ca24fb99f1ff3dc62949042f289c7b3f Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 17 Feb 2008 23:05:53 +0000 Subject: [PATCH] Add the secret super sauce so that Mac binaries built on Leopard don't crash on Tiger. (A pox upon whomever at Apple thinks that a binary built on OS version N crashing on version N-1 of an OS by default is OK.) --- tools/mac-config | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/mac-config b/tools/mac-config index 65e53d022..c986085f1 100755 --- a/tools/mac-config +++ b/tools/mac-config @@ -1,6 +1,12 @@ + +case `uname -r` in + 9.0) ;; # 10.3/ + 9.1) ;; # 10.4/Tiger + *) XFLAGS="-mmacosx-version-min=10.4" ;; # 10.5/Leopard +esac SRC=. -CFLAGS="-O -arch i386 -arch ppc" \ - LDFLAGS="-arch i386 -arch ppc" ${SRC}/configure \ +CFLAGS="$XFLAGS -O -arch i386 -arch ppc" \ + LDFLAGS="$XFLAGS -arch i386 -arch ppc" ${SRC}/configure \ --with-libexpat=${SRC}/mac/lib/libexpat.a \ --with-expathdr=${SRC}/mac/include -- 2.30.2